export default {
  backgroundColor: '#1c213e',
  tooltip: {
    formatter: function(val = []) {
      const { data, name, marker } = val
      const { type, value } = data
      switch (type) {
        case 'missRate':
          return `${name}<br/>${marker}缺失数据: ${value}<br />`
        case 'abnormalRate':
          return `${name}<br/>${marker}异常数据: ${value}<br />`
        default:
          return `验表时间:<br />${marker}${name}`
      }
    }
  },
  xAxis: [
    {
      boundaryGap: false,
      splitLine: {
        lineStyle: {
          color: '#31597d',
          type: 'dashed'
        }
      },
      nameTextStyle: {
        color: '#fff'
      }
    }
  ],
  yAxis: {
    name: '',
    type: 'value',
    splitLine: {
      lineStyle: {
        color: '#31597d',
        type: 'dashed'
      }
    },
    nameTextStyle: {
      color: '#fff'
    }
  },
  series: [],
  grid: {
    left: '5%',
    right: '5%',
    bottom: 35
  }
}
